package service

import (
	"gin-easy/models"
)

type User struct {
	Name     string
	Password string
	Phone    string
}

/*
*
注册用户
*/
func (u *User) UserRegister() bool {
	user := map[string]interface{}{
		"name":     u.Name,
		"password": u.Password,
		"phone":    u.Phone,
	}
	return models.UserCreate(user)
}
